﻿{include file="Public/head" title="充值-股票配资" keywords="股票配资" description="股票配资" /}

		<div id="offCanvasWrapper" class="mui-off-canvas-wrap mui-draggable">
		<!-- 菜单容器 -->
			{include file="Public/header"}

			<div class="mui-inner-wrap">
				<div id="offCanvasContentScroll" class="mui-content mui-scroll-wrapper" style="background-color: #fff;">
					<div class="mui-scroll">
						<header class="tx_head">
							<p>
								<a href="javascript:history.go(-1)" class="header_p1"><span class="mui-icon mui-icon-arrowleft"></span></a>
								<h5>充值</h5>
								<a id="offCanvasBtn" href="#offCanvasSide" class="mui-icon mui-action-menu mui-icon-bars mui-pull-right" style="color:#fff;"></a>
							</p>
						</header>
						<main class="wyty_main">
							<article>

	


								<section class="wyty_section2 bbb2">
									<ul>
										<li class="chongzhi_s3_li">
											<h5>您可以通过网上银行或银行柜台向老财牛转账</h5>
											<div class="chongzhi_s3_li_div">
												<img src="__STATIC__/wap/images/chongzhi_02.png" alt="中国工商银行"/>
												<div>
													<p>账号：6214 8502 3288 9102</p>
													<p>户名：夏辉</p>
													<p>开户行：招商银行重庆两江支行</p>
												</div>
											</div>
										</li>
										<li class="chongzhi_s3_li">
											<div class="chongzhi_s3_li_div">
												<img src="__STATIC__/wap/images/chongzhi_05.png" alt="支付宝钱包"/>
												<div>
													<p>账号：xiahui1115@163.com</p>
													<p>户名：夏辉</p>
													<p>开户行：支付宝</p>
												</div>
											</div>
										</li>
										<li>
											<div class="chongzhi_s3_li_div2">
												<img src="__STATIC__/wap/images/chongzhi_07.png" alt="微信扫码支付" />
												<div style="margin-left: 5px;">
													<p>账号：xh17782291891</p>
													<p>户名：夏辉</p>
													<p>开户行：微信支付</p>
												</div>
											</div>
											<div style="clear:both"></div>
										</li>
									</ul>
									<section class="chongzhi_s4">
										<div>
											<p>请准确填写您的充值金额和备注信息</p>
											<p>线下充值支付后，请在下方备注栏填写以下转账金额和支付方式</p>
											<p>例：充值金额1000</p>
											<p>线下充值备注：银行卡转账/微信/支付宝</p>

										</div>

									</section>
									<br>
									<ul class="bdyhk_a_ul">
										<li>充值金额：　<input style="width: 60%;border: 1px solid lightgray;" type="number" id="money" value="" placeholder="请输入充值金额"/></li>
										<li>充值备注：
											<select name="" id="title" style="border: 1px solid lightgray!important;width: 60%;margin-left: 10px;height: 40px;">
												<option value="">请选择</option>
												<option value="银行卡">银行卡转账</option>
												<option value="微信">微信转账</option>
												<option value="支付宝">支付宝转账</option>
											</select>　
											<!--<input type="text" id="title" value="" placeholder="请输入充值备注"/></li>-->
									</ul>
									<button class="bdyhk_button" id="moeny_btn" style="margin-top: 1rem;margin-bottom: 1rem;height: 45px;line-height: 30px;">提交</button>
								</section>
						
							</article>
							<br><br><br><br>
						</main>
					</div>
				</div>
				<div class="mui-off-canvas-backdrop"></div>
			</div>
		</div>
	
		{include file="Public/footer"}
	</body>

<script>
	$("#moeny_btn").click(function(){
		var money = $("#money").val();
		var title = $("#title").val();

		if(money == ''){
			layer.msg('请填写金额', {icon: 5, time: 1000});
			return false;
		}

		if(!(/(^[1-9]\d*$)/.test(money))){
			layer.msg('请填写正确金额', {icon: 5, time: 1000});
			return false;
		}

		if(title == ''){
			layer.msg('请选择充值备注', {icon: 5, time: 1000});
			return false;
		}

		$.ajax({
			type: "post",
			url:'{:url("addChargeXX")}',
			data:{'title':title,'money':money},
			dataType: 'JSON',
			success: function(result){
				if(result.success==1){
					layer.msg(result.msg, {icon: 6, time: 1000}, function(){
						window.location.href="{:url('record')}";
					});
				}else{
					layer.msg(result.msg, {icon: 5, time: 2000}, function(){
						window.location.reload();//页面刷新
					});
				}
			},
			erroor: function(result){
				layer.msg(result.msg, {icon: 5, time: 2000}, function(){
					window.location.reload();//页面刷新
				});

			}
		});
	});
</script>
</html>